home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Utilities Professional 1-1500
/
Utilities Professional 1-1500 (1994)(WPD)[!].iso
/
07511000
/
var0775.dms
/
var0775.adf
/
tutor3.P&C
< prev
next >
Wrap
Text File
|
1978-09-02
|
3KB
|
106 lines
* How Did you do ?@ You should have had something like below...
*
* Picture In PICTURES/KEYBOARD
* Set Zone 1 - ( Which would have changed to Set Mouse Zone 1:(**@**@**@**) )
* Wait Zone
* Clear
* Text - ( Which would be Text Window *:(**@**):***** )
*
* Get it right !!!. Your fast becoming a real Pro.
*
* TITLES@ JUMPS & LOOPS [ Load DEMOS/WINDOW for Example ]
* ---------------------
* TITLES - A title is used to mark the begining of a certain part of a
* Program. Some Basics would use line numbers@ But P.&.C uses
* names. All titles must be enclosed in brackets eg: ' [ hello ] '
* This would set up the title HELLO.
*
* JUMPS - Once you have defined some Titles you can easily get the computer
* to go to a specific place by using a ' goto *** ' command.
* eg: ' goto hello '
* Next..
* Study the program below and try to work out which text message would be
* printed on the screen.
*
* [ MAIN ]
* Goto SEC
*
* [ FIRST ]
* Text - Hi
*
* [ SEC ]
* Text - Hello
*
* You should have worked out that only the ' Hello ' would be put onto the
* screen. This is because the second command down ' Goto SEC '@ tells the
* computer to jump straight down to the Program SEC.
* But what if you wanted to jump back up again ?@ Well you could use
* another Goto command but an easier way would be to use ' Return '.
* The ' Return ' command tells the computer to jump back to the last
* Goto command that it encounterd.
*
* Cont...
* Ok@ Time to start using the old grey cells again...
* Look at the example program below@ which message would it print up on
* the screen....?
*
* [ MAIN ]
*
* Goto TEMP
* Text ' Hi '
* End
*
* [ TEMP ]
*
* Text ' Hello '
* Return
*
* Correct !!!@ it would print both. ' Hello '@ first followed by ' Hi '.
* The ' End ' command tells the computer to stop where it is and come out
* of the program@ otherwise it would carry on and print ' hello ' again.
*
*
* Time to see if you have taken it all in by having another.....
* SMALL TEST
* ----------
* The test I am going to set you will be very different from the others.
* I have written most of the program myself@ all you have to do is
* fill in the parts of it I have missed.
* The program must do the following :-
* Print the message ' Hello ' & ' Hi '@ And then End...
*
[ MAIN ]
Text Window 0:(16@9):Hi
Text Window 0:(1@18):This Line should not be on the screen
Goto QUIT
*
[ MESSAGE ]
Text Window 0:(15@6):Hello
Return
*
[ QUIT ]
End
* As I have said before this test is different because there is no way of
* knowing if the program has worked properly. In order to see if the program
* is correct you will have to TEST the program@ ( Click TEST@ BUT NOT YET )
* Hopefully when you do this you should see the two words Hello & Hi on the
* screen. If you don't click the mouse again to return to the editor@ find
* page 4@ delete what you think is wrong & try again.
*
* This will be your first ever running program !!!!
*
* Once you are happy with the program QUIT & LOAD up TUTOR4